package pl.kosmowska.ewelina.client.views.widgets.events;


import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.GwtEvent.Type;

public class ItemEditedEvent extends GwtEvent<ItemEditedHandler> {
		 private static final Type TYPE = new Type<ItemEditedHandler>();
		 
		 //private final ListItem listItem;
		 
		// public ItemAddedEvent(ListItem listItem) {
		//  this.listItem = listItem;
		// }
		 
		 public static Type getType() {
		  return TYPE;
		 }
		 
		// /** @returns The item added to the model */
		// public ListItem getListItem() {
		//  return listItem;
		// }
		 
		 @Override
		 protected void dispatch(ItemEditedHandler handler) {
		  handler.onItemEdited(this);
		 }

		 @Override
		 public com.google.gwt.event.shared.GwtEvent.Type getAssociatedType() {
		  return TYPE;
		 }
}
